package org.springframework.boot.netty.view;

import io.netty.channel.ChannelHandlerContext;
import org.springframework.boot.netty.support.ModelAndView;
import org.springframework.context.ApplicationContextAware;

/**
 * Author: huoxingzhi
 * Date: 2020/12/28
 * Email: hxz_798561819@163.com
 */
public interface View {

    // 响应内容的类型
    // "application/json; charset=utf-8";
    String JSON = "application/json";
    String JAVASCRIPT = "application/javascript";
    String CSS = "text/css";
    String HTML = "text/html";
    String PNG = "image/png";
    String GIF = "image/gif";
    String JPG = "image/jpeg";
    String SVG = "image/svg+xml";
    String SERVER = "Netty (4.0.XX.Final)";

    void render(io.netty.channel.Channel channel, ModelAndView modelAndView) throws Exception;
}
